package com.shop.service;

import com.shop.common.result.util.ResultModel;
import com.shop.entity.PartnerDo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.vo.AddPartnerVo;
import com.shop.vo.SelectPartnerVo;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 * 合作商表 服务类
 * </p>
 *
 * @author 靳 旺
 * @since 2021-01-29
 */
public interface PartnerService extends IService<PartnerDo> {

    /**
     * 添加单条合作商
     * @param addPartnerVo
     * @return
     * @throws Exception
     */
    ResultModel addPartner(AddPartnerVo addPartnerVo)throws Exception;


    /**
     * 批量添加合作商
     * @param addPartnerVo
     * @return
     * @throws Exception
     */
    ResultModel addBatchPartner(List<AddPartnerVo> addPartnerVo)throws Exception;

    /**
     * 查询合作商
     * @param selectPartnerVo
     * @return
     * @throws Exception
     */
    ResultModel selectPartner(SelectPartnerVo selectPartnerVo)throws Exception;
}
